package com.gen.com;

import java.util.Timer;
import java.util.TimerTask;

import com.gen.tool.SoundPlayer;
import com.ouken.com.LoginActivity;
import com.ouken.com.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class LogoActivity extends Activity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.logo); 
	      
	        SoundPlayer.init(this);
	        overridePendingTransition(R.anim.fade, R.anim.hold);
	        final Intent main = new Intent(this, LoginActivity.class); 
	        Timer timer = new Timer();
	        TimerTask task = new TimerTask() {
	            @Override
	            public void run() {
	               startActivity(main); 
	               LogoActivity.this.finish();
	            }
	        };
	        timer.schedule(task, 1000 * 3); 

	}
	
}